package com.zf.yichat.api.dto.request;

import com.zf.yichat.utils.YiChatMsgCode;
import org.hibernate.validator.internal.util.Contracts;

/**
 * 一句话描述功能
 *
 * @author fengsong
 * @date create in 13:07 2020/3/17 2020
 */
public class MissionCheckRequest extends FsRequest {

    private Long userMissionId;
    private Integer type;//0通过 1拒绝
    private String reason;

    public Long getUserMissionId() {
        return userMissionId;
    }

    public void setUserMissionId(Long userMissionId) {
        this.userMissionId = userMissionId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    public void valid() {
        Contracts.assertNotNull(userMissionId, YiChatMsgCode.SYSTEM_PARAM_ERROR.msg());
        Contracts.assertNotNull(type, YiChatMsgCode.SYSTEM_PARAM_ERROR.msg());
    }
}
